#include "pch.hpp"
#include "info.hpp"




EngineInfo::EngineInfo(const DisplayMode& displayMode,
					   const VideoAdapter& videoAdapter,
					   const AudioAdapter& audioAdapter,
					   services::provider::const_ptr provider)
	: videoDevice(D3D11)
	, audioDevice(FMOD)
	, physicsDevice(TPhysics)
	, inputDevice(Win32)
	, scriptDevice(Angelscript)
	, window(0)
	, graphicsAdapter(videoAdapter)
	, displayMode(displayMode)
	, fov(45.0f)

	, audioAdapter(audioAdapter)

	, serviceProvider(provider)
	, angelscript(nullptr)
{
	if(!graphicsAdapter.supports(displayMode))
		BOOSTEXT_THROW(exception("The given display mode is not supported by the graphics adapter"));
}
///////////////////////////////////////////////////////////////////////////////////////////////////
